-
Notifications
You must be signed in to change notification settings - Fork 841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make "m" the default size of EuiButton #1742
Conversation
So unfortunately this is a breaking change to anyone consuming Basically add an eui/src/components/button/button.js Lines 27 to 30 in 063b47d
|
@cchaos Thanks for the pointers, I've changed this to align with your suggestion 👍 |
Thanks, can you also update the name of this PR and add a changelog entry? |
Done 👍 |
Can you clean your test cache and then update the tests again:
|
Done, build looks good now. Sorry for all of the back and forth 🙈 |
No problem, thank you for updating this! There is actually one more place that needs updating too which is the Typescript definition eui/src/components/button/index.d.ts Line 27 in bff0469
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@cchaos Ace, thanks for all of the pointers on my first EUI adventure 😄 |
Summary
This updates the prop type comment for
EuiButtonGroup
and the TypeScript definition forEuiButtonGroup
, this is to normalise a bit of drift between whatEuiButtonGroup
andEuiButton
were declaring as valid button sizes, beforehand:EuiButtonGroup
used "s" and mentioned "m" in the docsEuiButtonGroup
TypeScript definitions defined size as "s" | "m"However, once these props were passed down to
EuiButton
this would cause a console warning using "m" due toEuiButton
supporting "s" and "l" only.Given "m" and "l" both produce buttons of the same size, I've just removed the notion of "m" from
EuiButtonGroup
(hopefully this is okay - I've checked it against the docs site and Kibana).Checklist